﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style>/*<![CDATA[*/

table{border: 1px solid gray;}
td{border: 1px dotted gray;}
p{margin: 3px 0 3px 0; padding: 0;}
#ID_Footer{font-size: small; font-style: italic; text-align: right; margin-top: 4em; padding-top: 4px; border-top: 2px solid gray;}

/*]]>*/</style><title>FAQ</title></head><body>
<div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div>
<div><span style="line-height: 140%; "><b><font class="Apple-style-span" face="Consolas">FAQ</font></b></span></div>
<div><font class="Apple-style-span" face="Consolas"><br></font></div>
<div><span style="line-height: 140%; "><font class="Apple-style-span" face="Consolas"><b> 1. &nbsp;table元素、tr元素及td元素都有<font class="Apple-style-span" color="#ff0000">bgcolor</font>属性？</b></font></span></div>
<div><span style="line-height: 140%; "><font class="Apple-style-span" face="Consolas"><br></font></span></div><div><span style="line-height: 140%; "><font class="Apple-style-span" face="Consolas">答: 经windows 10, Chrome 53.0.2785.101 m(64bit) 实验（2016-9-18 ），3元素均具有此"背景颜色"属性。</font></span></div>
<div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div>
<div><span style="line-height: 140%; "><b><font class="Apple-style-span" face="Consolas"> 2. table, tr, td中的width &amp; height如何设定？</font></b></span></div>
<div><span class="Apple-style-span" style="line-height: 22px;"><font class="Apple-style-span" face="Consolas"><br></font></span></div><div><span class="Apple-style-span" style="line-height: 22px;"><font class="Apple-style-span" face="Consolas"><br></font></span></div>
<div><font class="Apple-style-span" face="Consolas"><br></font></div>
<div><span style="line-height: 140%; "><b><font class="Apple-style-span" face="Consolas">3. align &amp; text-align attribute?</font></b></span></div>
<div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><b>4. 如下例中，在html中出现的xmlns属性是什么意思？</b></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><br></span></div>&nbsp; &nbsp;&nbsp;</span>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br></font><div><font class="Apple-style-span" face="Consolas"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); ">&nbsp; &nbsp;&nbsp;</span>&lt;html&nbsp;<font class="Apple-style-span" color="#ff0000"><b>xmlns</b></font>="http://www.w3.org/1999/xhtml"&gt;</font></div><div><div><font class="Apple-style-span" face="Consolas"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><br></span></font></div><div><font class="Apple-style-span" face="Consolas">答：<span class="Apple-style-span" style="line-height: 29px; white-space: pre-wrap; background-color: rgb(255, 255, 255); "><font class="Apple-style-span" color="#333333">xmlns是</font><b><font class="Apple-style-span" color="#ff0000">XHTML namespace</font></b><font class="Apple-style-span" color="#333333">的缩写。</font></span></font></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><font class="Apple-style-span" face="Consolas"><br></font></span></div><div><font class="Apple-style-span" face="Consolas"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); ">&nbsp; &nbsp;&nbsp;</span><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 29px; white-space: pre-wrap; background-color: rgb(255, 255, 255); ">作用：由于xml允许定义自己的标记，但你定义的标记和其他人定义的标记有可能相同，但表示不同的含义。当文档交换或者共享的时候就容易产生错误。为避免这种错误产生，xml采用声明，允许你通过一个网址来识别你的标记。名字空间</span><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); ">&nbsp; &nbsp;&nbsp;</span></font></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><font class="Apple-style-span" face="Consolas"><br></font></span></div><div><font class="Apple-style-span" face="Consolas"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); ">&nbsp; &nbsp;&nbsp;</span><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 29px; white-space: pre-wrap; background-color: rgb(255, 255, 255); ">XHTML是HTML先xml过度的标记语言，它需要符合规则，因此，也需要定义，又因为XHTML1.0不能自定义标识，所以，它的都相同，就是：<b>http://www.w3.org/1999/xhtml</b>名字空间xml文档名字空间</span></font></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 29px; white-space: pre-wrap; background-color: rgb(255, 255, 255); "><span class="Apple-style-span" style="color: rgb(0, 0, 0); line-height: normal; white-space: normal; "><font class="Apple-style-span" face="Consolas"><br></font></span></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 29px; white-space: pre-wrap; background-color: rgb(255, 255, 255); "><span class="Apple-style-span" style="color: rgb(0, 0, 0); line-height: normal; white-space: normal; "><font class="Apple-style-span" face="Consolas">&nbsp; &nbsp; Leo注：现在html网页（2016-11-6）很少有加这个属性，似乎没多大必要?</font></span></span></div><div><font class="Apple-style-span" face="Consolas"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><br></span></font></div><div><font class="Apple-style-span" face="Consolas"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><br></span></font></div></div><div><font class="Apple-style-span" face="Consolas"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><b>5. 在当前窗口中打开，在新窗口中打开？</b></span></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas">答：&lt;base target="_self"/&gt;，默认方式，即本页刷新</font></div><div><font class="Apple-style-span" face="Consolas">&nbsp; &nbsp; &nbsp; &lt;base target="_base" /&gt;, 在新窗口中打开</font></div><div><font class="Apple-style-span" face="Consolas">&nbsp; &nbsp; &nbsp;&nbsp;&lt;a href="xxx.htm" target="_blank"&gt;超链接内容&lt;/a&gt;, 特定元素中在新窗口中打开</font></div><div><font class="Apple-style-span" face="Consolas">&nbsp; &nbsp; &nbsp;&nbsp;</font></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><table class="dataintable " style="color: rgb(0, 0, 0); font-style: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); "><tbody><tr><td><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="Consolas">_blank</font></blockquote></td><td><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="Consolas">在新窗口中打开被链接文档。</font></blockquote></td></tr><tr><td><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="Consolas">_self</font></blockquote></td><td><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="Consolas">默认。在相同的框架中打开被链接文档。</font></blockquote></td></tr><tr><td><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="Consolas">_parent</font></blockquote></td><td><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="Consolas">在父框架集中打开被链接文档。</font></blockquote></td></tr><tr><td><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="Consolas">_top</font></blockquote></td><td><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="Consolas">在整个窗口中打开被链接文档。</font></blockquote></td></tr><tr><td><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><em><font class="Apple-style-span" face="Consolas">framename</font></em></blockquote></td><td><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="Consolas">在指定的框架中打开被链接文档。</font></blockquote></td></tr></tbody></table></div></blockquote><div><div><font class="Apple-style-span" face="Consolas"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><br></span></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas">6.&nbsp;</font></div></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><br></div><script type="text/javascript" language="javascript" src="jquery.js"></script><script type="text/javascript" language="javascript" src="itemlink.js"></script></body></html>